<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>节点管理</title>
</head>

<body>
	<div id="wrap">
		<a href="{:U('admin/Rbac/addNode')}">添加应用</a>
		<table border="1">
			<tr><td>序号</td><td>结点描述</td><td>名称</td><td>排序</td><td>类型</td><td>管理</td></tr>
			<volist name="node" id="vo">
				<tr>
					<td>{$vo['id']}</td>
					<td><p style="text-indent:{$vo['level']*20}px ">·{$vo.title}</p></td>
					<td>{$vo.name}</td>
					<td>{$vo.sort}</td>
					<td><if condition="$vo['level'] eq 1">项目<elseif condition="$vo['level'] eq 2"/><div style="color:green">模块</div><else /><div style="color:blue">操作</div></if>
					</td>
					<td>
						[<a href="{:U('admin/Rbac/addNode',array('pid'=>$vo['id'],'level'=>2))}">添加控制器</a>]
						[<a href="">修改</a>]
						[<a href="{:U('admin/Rbac/deleteNode',array('id'=>$vo['id']))}">删除</a>]
					</td>
					<volist name="vo.child" id="action">
						<dl>
							<dt>
								<strong>{$action.title}</strong>
								[<a href="{:U('admin/Rbac/addNode',array('pid'=>$action['id'],'level'=>3))}">添加方法</a>]
								[<a href="">修改</a>]
								[<a href="">删除</a>]
							</dt>
							<volist name="action.child" id="method">
								<dd>
									<span>{$method.title}</span>
									[<a href="">修改</a>]
									[<a href="">删除</a>]
								</dd>
							</volist>
						</dl>

					</volist>
				</tr>		

			</volist>
		</table>
	</div>
</body>
</html>
